package com.wanxi.spring.cloud.permission.service;


import com.wanxi.spring.cloud.commons.api.CommonResult;
import com.wanxi.spring.cloud.permission.model.Permission;

import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 蒋帆
 * @since 2020-12-21
 */
public interface PermissionService {

    CommonResult getPermissions(Integer page, Integer limit);

    CommonResult addPermission(Permission permission);

    CommonResult updatePermission(Permission permission);

    CommonResult deletePermission(Integer id);

    CommonResult getAllPermissions();

    CommonResult getPermissions(Map map);
}
